package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 古树名木记录表
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_gre_tree_famous_record")
public class GreTreeFamousRecord extends BaseEntity {
        /**
     * treeFamous  c_id
     */
    @DbTableField(columnName = "c_tree_int_id", dbType = DbTypeEnum.INTEGER)
    public Integer treeIntId ;

    /**
     * UUID
     */
    @DbTableField(columnName = "c_tree_id", dbType = DbTypeEnum.VARCHAR)
    public String treeId ;

    /**
     * 编号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code ;

    /**
     * 中文名
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 拉丁名
     */
    @DbTableField(columnName = "c_name_latin", dbType = DbTypeEnum.VARCHAR)
    public String nameLatin ;

    /**
     * 树种
     */
    @DbTableField(columnName = "c_tree_kind", dbType = DbTypeEnum.VARCHAR)
    public String treeKind ;

    /**
     * 属名
     */
    @DbTableField(columnName = "c_tree_attr", dbType = DbTypeEnum.VARCHAR)
    public String treeAttr ;

    /**
     * 树高
     */
    @DbTableField(columnName = "c_tree_height", dbType = DbTypeEnum.DOUBLE)
    public Double treeHeight ;

    /**
     * 年龄
     */
    @DbTableField(columnName = "c_tree_old", dbType = DbTypeEnum.INTEGER)
    public Integer treeOld ;

    /**
     * 街道Id
     */
    @DbTableField(columnName = "c_street_id", dbType = DbTypeEnum.VARCHAR)
    public String streetId ;

    /**
     * 街道
     */
    @DbTableField(columnName = "c_street_name", dbType = DbTypeEnum.VARCHAR)
    public String streetName ;

    /**
     * 区域id
     */
    @DbTableField(columnName = "c_distract_id", dbType = DbTypeEnum.VARCHAR)
    public String distractId ;

    /**
     * 区域名称
     */
    @DbTableField(columnName = "c_distract_name", dbType = DbTypeEnum.VARCHAR)
    public String distractName ;

    /**
     * 树木状态
     */
    @DbTableField(columnName = "c_tree_state", dbType = DbTypeEnum.VARCHAR)
    public String treeState ;

    /**
     * 俗名
     */
    @DbTableField(columnName = "c_name_comm", dbType = DbTypeEnum.VARCHAR)
    public String nameComm ;

    /**
     * 特点
     */
    @DbTableField(columnName = "c_tree_trait", dbType = DbTypeEnum.VARCHAR)
    public String treeTrait ;

    /**
     * 调查号
     */
    @DbTableField(columnName = "c_examine_code", dbType = DbTypeEnum.VARCHAR)
    public String examineCode ;

    /**
     * 名木类别 1 古树
     */
    @DbTableField(columnName = "c_famous_type_id", dbType = DbTypeEnum.INTEGER)
    public Integer famousTypeId ;

    /**
     * 名木类别
     */
    @DbTableField(columnName = "c_famous_type_name", dbType = DbTypeEnum.VARCHAR)
    public String famousTypeName ;

    /**
     * 栽植人
     */
    @DbTableField(columnName = "c_plant_user", dbType = DbTypeEnum.VARCHAR)
    public String plantUser ;

    /**
     * 栽植时间
     */
    @DbTableField(columnName = "c_plant_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime plantDate ;

    /**
     * 养护单位ID
     */
    @DbTableField(columnName = "c_maintain_dept_id", dbType = DbTypeEnum.VARBINARY)
    public byte[] maintainDeptId ;

    /**
     * 养护单位
     */
    @DbTableField(columnName = "c_maintain_dept", dbType = DbTypeEnum.VARCHAR)
    public String maintainDept ;

    /**
     * 联系人
     */
    @DbTableField(columnName = "c_maintain_user", dbType = DbTypeEnum.VARCHAR)
    public String maintainUser ;

    /**
     * 社区Id
     */
    @DbTableField(columnName = "c_community_id", dbType = DbTypeEnum.VARCHAR)
    public String communityId ;

    /**
     * 社区
     */
    @DbTableField(columnName = "c_community_name", dbType = DbTypeEnum.VARCHAR)
    public String communityName ;

    /**
     * 生长场所
     */
    @DbTableField(columnName = "c_grow_place", dbType = DbTypeEnum.VARCHAR)
    public String growPlace ;

    /**
     * 坐标X
     */
    @DbTableField(columnName = "c_lng", dbType = DbTypeEnum.DOUBLE)
    public Double lng ;

    /**
     * 坐标Y
     */
    @DbTableField(columnName = "c_lat", dbType = DbTypeEnum.DOUBLE)
    public Double lat ;

    /**
     * 胸径
     */
    @DbTableField(columnName = "c_tree_width", dbType = DbTypeEnum.DOUBLE)
    public Double treeWidth ;

    /**
     * 保护级别 1：一级 2： 二级 3： 三级
     */
    @DbTableField(columnName = "c_protect_level", dbType = DbTypeEnum.INTEGER)
    public Integer protectLevel ;

    /**
     * 保护级别
     */
    @DbTableField(columnName = "c_protect_level_name", dbType = DbTypeEnum.VARCHAR)
    public String protectLevelName ;

    /**
     * 生长环境
     */
    @DbTableField(columnName = "c_grow_ambient", dbType = DbTypeEnum.VARCHAR)
    public String growAmbient ;

    /**
     * 地围
     */
    @DbTableField(columnName = "c_dewei", dbType = DbTypeEnum.DOUBLE)
    public Double dewei ;

    /**
     * 平均冠幅
     */
    @DbTableField(columnName = "c_avg_crown", dbType = DbTypeEnum.DOUBLE)
    public Double avgCrown ;

    /**
     * 东西冠幅
     */
    @DbTableField(columnName = "c_east_west_crown", dbType = DbTypeEnum.DOUBLE)
    public Double eastWestCrown ;

    /**
     * 南北冠幅
     */
    @DbTableField(columnName = "c_north_south_crown", dbType = DbTypeEnum.DOUBLE)
    public Double northSouthCrown ;

    /**
     * 海拔
     */
    @DbTableField(columnName = "c_altitude", dbType = DbTypeEnum.DOUBLE)
    public Double altitude ;

    /**
     * 坡向
     */
    @DbTableField(columnName = "c_aspect", dbType = DbTypeEnum.VARCHAR)
    public String aspect ;

    /**
     * 坡度
     */
    @DbTableField(columnName = "c_slope", dbType = DbTypeEnum.VARCHAR)
    public String slope ;

    /**
     * 地位
     */
    @DbTableField(columnName = "c_status", dbType = DbTypeEnum.VARCHAR)
    public String status ;

    /**
     * 土壤
     */
    @DbTableField(columnName = "c_soil", dbType = DbTypeEnum.VARCHAR)
    public String soil ;

    /**
     * 紧密度
     */
    @DbTableField(columnName = "c_tightness", dbType = DbTypeEnum.VARCHAR)
    public String tightness ;

    /**
     * 古树历史
     */
    @DbTableField(columnName = "c_history", dbType = DbTypeEnum.VARCHAR)
    public String history ;

    /**
     * 鉴定记载
     */
    @DbTableField(columnName = "c_record", dbType = DbTypeEnum.VARCHAR)
    public String record ;

    /**
     * 树木状态
     */
    @DbTableField(columnName = "c_tree_status", dbType = DbTypeEnum.INTEGER)
    public Integer treeStatus ;

    /**
     * 群落编号
     */
    @DbTableField(columnName = "c_community_code", dbType = DbTypeEnum.VARCHAR)
    public String communityCode ;

    /**
     * 是否防护 0: false 1: true
     */
    @DbTableField(columnName = "c_is_protect", dbType = DbTypeEnum.BIT)
    public Boolean isProtect ;

    /**
     * 描述
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 版本 1 当前 0 历史
     */
    @DbTableField(columnName = "c_is_new", dbType = DbTypeEnum.INTEGER)
    public Integer isNew ;

    /**
     * 数据发布 0 false 1 ture
     */
    @DbTableField(columnName = "c_data_public", dbType = DbTypeEnum.BIT)
    public Boolean dataPublic ;

    /**
     * 年份/用来判断树龄
     */
    @DbTableField(columnName = "c_year", dbType = DbTypeEnum.INTEGER)
    public Integer year ;

    /**
     * 台账编号
     */
    @DbTableField(columnName = "c_code_two", dbType = DbTypeEnum.VARCHAR)
    public String codeTwo ;

    /**
     * 审核状态
     */
    @DbTableField(columnName = "c_state", dbType = DbTypeEnum.BIT)
    public Boolean state ;


}
